<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/pages/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <title>绑定页面权限</title>
    <%@ include file="/WEB-INF/pages/include/baseCSS.jsp"%>
</head>

<body>
<!-- Field Validation -->
<div class="panel" style="height:100%">
  <div class="panel-body" style="height:100%">
    <form class="form-horizontal" role="form" id="menu-authorize-form" >
    	<input type="hidden" name="menuid" value="${menuid}"/>
    	<input type="hidden" id="permissionid" name="permissionid" value=""/>
    	<div class="simple-tree" data-tree-id="permtree" data-tree-url="${ctx}/menu/permtree?menuid=${menuid}" data-tree-checktype="radio" data-tree-onCheck="onCheck"/>
    </form>
  </div>
</div>

<%@ include file="/WEB-INF/pages/include/baseJS.jsp"%>
<script type="text/javascript">
	function onCheck(event, treeId, treeNode) { 
		$("#permissionid").val(treeNode.id);
	}
</script>
</body>
</html>
